// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1


Rectangle {
    width: 960
    height: 720



    // background
    Image {
        source: "images/ui/table_pattern.png"
        anchors.fill: parent
        fillMode: Image.Tile


    }

    ActionsPanel {
        id: actionspanel
        x: 679
        y: 394
        objectName: "actionspanel"
    }


    BalancePanel{
        id:balance
        x:10
        //y: 455
        y:10
        objectName: "balance"
    }
    BankPanel{
        id:bankPanel
        x:680
        y:5
        objectName: "bankPanel"
        //        onChangeMoney: incrementMoney(size)
    }
    ChatPanel{
        id: chatPanel
        x: 680
        y: 453
        objectName: "chatPanel"
    }
    function chatLog(p_txt){
        chatPanel.append(p_txt);
    }

    function addCard(owner,mast,card){
        balance.addCard(owner,mast,card);
    }
    function setPlayerMoney(val){
        balance.setPlayerMoney(val);
    }
    function setCPUMoney(val){
        balance.setCPUMoney(val);
    }

    function setCPUName(name){
        balance.setGirlName(name)
    }
    function setPlayerName(name){
        balance.setPlayerName(name)
    }


    //    VideoPanel{

    //   }

    //    MouseArea {
    //        anchors.fill: parent
    //        onClicked: {
    //            Qt.quit();
    //        }
    //        onClicked: console.log("clicked")
    //    }
}
